package com.jsy.mini12306.ticketsales.mapper;

import com.jsy.mini12306.common.entity.Train;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 车次（图中的路径）(Train)表数据库访问层
 *
 * @author: SongyangJi
 * @since: 2021-09-01 12:55:06
 * @description:
 */
@Mapper
@Repository
public interface TrainMapper extends BaseMapper<Train> {

    List<Train> selectAllTrains();

    Train selectTrainById(int trainId);

}
